#ifndef CLIENT_H
#define CLIENT_H

#include <string>
#include <SFML/Network.hpp>
//#include <SFML/Audio.hpp>

#include "CharacterClient.h"
#include "ScoreClient.h"
#include "ClientWorldObjects.h"

using namespace std;

class Client {

public :

	sf::RenderWindow* window;
	sf::Sprite background;
	//sf::Music ambiantMusic;

	CharacterClient* characterClient;
	CharacterClient* otherCharacterClient;
	ScoreClient* score;

	ClientWorldObjects* cwo;
	
	sf::TcpSocket socket;

	bool partySart;
	
	/*Variables de gestion des threads*/
	sf::Thread* threadPrincipal;
	
	int socketCreation(string address, int port);
	int launchGame();
	Client(int* resolution, string windowName);
	void drawEngine();

	/* Sounds */
	/*int startAmbiantMusic();
	void stopAmbiantMusic();
	void playBounceSound();*/

};


#endif